package com.chinaoly.sdk.api;



import com.chinaoly.sdk.data.entity.BaseResult;
import com.oly.annotation.Generate;
import com.oly.annotation.TransDispose;

import java.util.Map;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * Created by chenjian on 2019/6/25 16:36.
 */
@Generate
public interface ApiService {
    @TransDispose
    Observable<BaseResult<String>> a(int a, int b, int c);

    @TransDispose
    Observable<BaseResult<Long>> abc(String s, int a, Map<String,String> c);
    @TransDispose
    Observable<BaseResult<Long>> abd();

    @Multipart
    @POST("/api/file/")
    Observable<Object> upload(@Part("group") RequestBody body1,
                              @Part("destruct_interval") RequestBody body2,
                              @Part MultipartBody.Part file);
}
